/* eslint-disable @typescript-eslint/no-explicit-any */
/*
 *  Copyright 2021 Collate
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

 /**
 * 数据标准数据类型.
 */
export interface Datatype {
    /**
     * condition1.
     */
    condition1?: string;
    /**
     * condition2.
     */
    condition2?: string;
    /**
     * opType of the data.
     */
    opType?: OpType;
    /**
     * opTypeShow of the data.["大于", "小于", "等于", "介于"]
     */
    opTypeShow?: string;
    /**
     * Type of the data.
     */
    type?: Type;
    /**
     * typeShow of the data.["字符串", "数字", "字符串或数字"]
     */
    typeShow?: string;
}

/**
 * opType of the data.
 */
export enum OpType {
    BT = "bt",
    Eq = "eq",
    Gt = "gt",
    Lt = "lt",
}

/**
 * Type of the data.
 */
export enum Type {
    All = "all",
    Int = "int",
    String = "string",
}
